<div id="content">
	<div id="top">
		<h3>
			<%=h @item.display_name %>
			<%= @link_to_bag = "&nbsp;(inside " + (link_to @bag_link_text, item_path(@item.contained_by)).to_s + ")" if @bag_link_text %>
		</h3>
		<%= render :partial => '/partials/help_link', :locals => {:path => {:controller => "help", :action => "items", :anchor => "show"}} %>
	</div>
	<div class="options">
		<ul class="right">
			<% if @current_user.permission_level != 'courier' and @item.check_ins.count < 2 %>
				<%= link_to 'Delete', @item, :confirm => 'Are you sure?', :method => :delete %>
			<% else %>
				<span>Can't Delete</span>
			<% end %>
			<% @check_ins = CheckIn.find_all_by_item_id(@item.id, "created_at DESC") %>
			<% if not(@check_ins.first and @check_ins.first.action == "drop_off") and not(@item.lost_item) %>
				<%= link_to 'Mark as Lost', lost_items_path(:identifier => {:identifier_value => @identifier.identifier_value}, :lost_item =>{:comment => "", :resolved => false}), :action => :create, :confirm => 'Are you sure?', :method => :post %>
			<% end %>      
		</ul>
	</div>
	<%= render :partial => 'item_information' %>
</div>